By default, data model extensions are global in scope. To register dynamic custom entities at a different scope level, you use a code extension of type SERVER_LIFECYCLE. N4 calls an extension of this type once per Java virtual machine (JVM), at startup. For a sample code extension of this type, see Example: SERVER_LIFECYCLE (on page 1). For more information on this code extension type, see Extension Type Registry view (on page 1).
Scoping at a non-global level requires that you define scope fields for the dynamic custom entity, as shown in the sample figure.